package com.rpc.center.event.eventtype;

import com.rpc.common.entity.request.BaseDTO;
import io.netty.channel.Channel;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class BaseEvent<T extends BaseDTO> {
    private Channel channel;
    private EventType eventType;
    /**
     * 收到的消息，这里把收到的消息包装在BaseEvent里面
     */
    private T message;
}
